package com.example.es.restclient;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@MapperScan("com.example.es.restclient.mapper")
public class EsRestclientApplication {

	public static void main(String[] args) {
		SpringApplication.run(EsRestclientApplication.class, args);
	}
	@Bean
	public MessageConverter messageConverter(){
		return  new Jackson2JsonMessageConverter();
	}
}
